//
//  DeSuccessedViewController.m
//  bluetooth
//
//  Created by 周季阳 on 15/6/15.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "DeSuccessedViewController.h"
#import "UIViewAdditions.h"


@interface DeSuccessedViewController ()

@end

@implementation DeSuccessedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNav];
    navTitle.text = @"Super Q-516548461";
    self.view.backgroundColor = [self colorWithHexString:@"#F5F5F5"];
    
    [self initUI];

}
#pragma mark - initUI
-(void)initUI{
    UIView *zBackView = [[UIView alloc]initWithFrame:CGRectMake(0, navView.bottom, SCREEN_WIDTH, (SCREEN_HEIGHT-64)/2+75)];
    zBackView.backgroundColor = [UIColor whiteColor];
    zBackView.userInteractionEnabled = NO;
    [self.view addSubview:zBackView];
    
    UILabel *title = [[UILabel alloc]initWithFrame:CGRectMake(10, 5, SCREEN_WIDTH-20, 20)];
    title.text = @"Super Q-5164828382";
    title.textColor = [UIColor blackColor];
    title.backgroundColor = [UIColor clearColor];
    title.font = [UIFont systemFontOfSize:13];
    title.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:title];
    
    UIImageView *zImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, title.bottom, SCREEN_WIDTH-20, 169)];
    [zImage setImage:[UIImage imageNamed:@"lianjieshebei"]];
    [zBackView addSubview:zImage];
    
    UILabel *status = [[UILabel alloc]initWithFrame:CGRectMake(10, zImage.bottom+5, SCREEN_WIDTH-20, 20)];
    status.text = @"状  态:锁定";
    status.textColor = [UIColor blackColor];
    status.backgroundColor = [UIColor clearColor];
    status.font = [UIFont systemFontOfSize:13];
    status.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:status];
    
    UILabel *xinghao = [[UILabel alloc]initWithFrame:CGRectMake(10, status.bottom+5, SCREEN_WIDTH-20, 20)];
    xinghao.text = @"型  号:XXXX";
    xinghao.textColor = [UIColor blackColor];
    xinghao.backgroundColor = [UIColor clearColor];
    xinghao.font = [UIFont systemFontOfSize:13];
    xinghao.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:xinghao];
    
    UILabel *chanpinjie = [[UILabel alloc]initWithFrame:CGRectMake(10, xinghao.bottom+5, SCREEN_WIDTH-20, 20)];
    chanpinjie.text = @"产品介绍:C-UK面膜机-SUPER Q新品上市C-UK面膜机-SUPER Q新品上市";
    chanpinjie.textColor = [UIColor blackColor];
    chanpinjie.backgroundColor = [UIColor clearColor];
    chanpinjie.font = [UIFont systemFontOfSize:13];
    chanpinjie.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:chanpinjie];
    
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(10, chanpinjie.bottom+5, SCREEN_WIDTH-20, 0.5)];
    lineView.backgroundColor = [UIColor grayColor];
    [zBackView addSubview:lineView];
    
    UILabel *bangDingUser = [[UILabel alloc]initWithFrame:CGRectMake(10, chanpinjie.bottom+10, SCREEN_WIDTH-20, 20)];
    bangDingUser.text = @"绑定用户:谷铮";
    bangDingUser.textColor = [UIColor blackColor];
    bangDingUser.backgroundColor = [UIColor clearColor];
    bangDingUser.font = [UIFont systemFontOfSize:13];
    bangDingUser.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:bangDingUser];

    UILabel *bangDingPhone = [[UILabel alloc]initWithFrame:CGRectMake(10, bangDingUser.bottom+5, SCREEN_WIDTH-20, 20)];
    bangDingPhone.text = @"绑定手机:15001011273";
    bangDingPhone.textColor = [UIColor blackColor];
    bangDingPhone.backgroundColor = [UIColor clearColor];
    bangDingPhone.font = [UIFont systemFontOfSize:13];
    bangDingPhone.textAlignment = NSTextAlignmentLeft;
    [zBackView addSubview:bangDingPhone];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setBackgroundImage:[UIImage imageNamed:@"xuexi"] forState:UIControlStateNormal];
    btn.frame = CGRectMake((SCREEN_WIDTH-180)/2, zBackView.bottom+20, 180, 40);
    [btn addTarget:self action:@selector(clickBtn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}
#pragma mark - 解锁
-(void)clickBtn{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
